import request from '@/utils/request'

// 查询资金来源列表
export function listProjectfundingsource(query) {
  return request({
    url: '/system/projectfundingsource/list',
    method: 'get',
    params: query
  })
}

export function listsProjectfundingsource(query) {
  return request({
    url: '/system/projectfundingsource/lists',
    method: 'get',
    params: query
  })
}

// 查询资金来源详细
export function getProjectfundingsource(id) {
  return request({
    url: '/system/projectfundingsource/' + id,
    method: 'get'
  })
}

// 新增资金来源
export function addProjectfundingsource(data) {
  return request({
    url: '/system/projectfundingsource',
    method: 'post',
    data: data
  })
}

// 修改资金来源
export function updateProjectfundingsource(data) {
  return request({
    url: '/system/projectfundingsource',
    method: 'put',
    data: data
  })
}

// 删除资金来源
export function delProjectfundingsource(id) {
  return request({
    url: '/system/projectfundingsource/' + id,
    method: 'delete'
  })
}
